/* 简历预览组件样式 - ResumePreview.vue */

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-tip {
  font-size: 12px;
  color: #666;
}

.preview-card {
  /* 固定为A4纸张尺寸，与PDF导出保持一致 */
  width: 210mm !important;
  min-height: 297mm;
  max-height: 297mm;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

/* 移除卡片默认的padding，让内容紧贴边缘 */
.preview-card :deep(.el-card__body) {
  padding: 0;
  width: 210mm;
  min-height: 297mm;
}

/* 确保Flex容器布局生效，避免默认样式干扰 */
.basic-flex-container {
  width: 100%;
}

.basic-info-left {
  min-width: 0; /* 解决文字溢出问题 */
}

/* 移除默认样式，确保动态样式优先 */
.section-title, .preview-name, .basic-info, .preview-intro, .item-main, .item-desc {
  margin: 0;
  padding: 0;
}

.info-item {
  margin: 0 0 6px 0;
  padding: 0;
}

.module-content {
  overflow: hidden;
}

/* 适配小屏幕，避免左右布局挤压 */
@media (max-width: 600px) {
  .basic-flex-container {
    flex-direction: column;
  }
  .preview-photo {
    margin: 15px auto 0 !important; /* 小屏幕头像居中 */
  }
}
